﻿#region Styx Namespaces
using Styx;
using Styx.CommonBot.Routines;
#endregion

namespace GiwinMonk
{
    public partial class Monk : CombatRoutine
    {

        /// <summary>
        /// Cost: None |
        /// Range: 0 Yards (Self) |
        /// Cast Time: Instant (Channeled) |
        /// GCD: 1 Second |
        /// 
        /// http://www.wowhead.com/spell=115176
        /// </summary>


        public bool ZenMeditation()
        {
            return (MIRsettings.Instance.ZenMeditation) && 
                (StyxWoW.Me.CurrentTarget != null) &&
                   (StyxWoW.Me.CurrentTarget.Class == WoWClass.Mage ||
                    StyxWoW.Me.CurrentTarget.Class == WoWClass.Warlock ||
                    StyxWoW.Me.CurrentTarget.Class == WoWClass.Shaman ||
                    StyxWoW.Me.CurrentTarget.Class == WoWClass.Priest ||
                    StyxWoW.Me.CurrentTarget.Class == WoWClass.Shaman ||
                    StyxWoW.Me.CurrentTarget.Class == WoWClass.Druid) &&
                   (StyxWoW.Me.CurrentTarget.CurrentTarget.IsMe) &&
                   (StyxWoW.Me.CurrentTarget.Distance <= 30) &&
                   CanCast("Zen Meditation");
        }
    }
}
